cmake_minimum_required(VERSION 3.2)

project(gate)
include_directories(.) # 将该项目下包含的内容反馈回主项目

set(CMAKE_CXX_COMPILER "/usr/bin/g++")

# 包含目录
include_directories(
    ${PROJECT_SOURCE_DIR}/../common/include
   # ${CMAKE_SOURCE_DIR}/test
)

# 添加可执行文件
add_executable(${PROJECT_NAME}
    main.cpp
)

# 链接库
target_link_libraries(${PROJECT_NAME}
    pthread
)

# 测试配置
if(BUILD_TESTING)
    enable_testing()
    #add_subdirectory(test)
endif()

# 安装规则
install(TARGETS ${PROJECT_NAME} DESTINATION bin)


set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS "-std=c++14")
